<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<script language="javascript"> 
	function firm(){//利用对话框返回的值 （true 或者 false）
		if(confirm("你确要删除此数据？")){ 
			return true;
		}
		else{ 
			return false;
		}
	}
</script>
<html>
	<head>
		<title>部门管理</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
		
		 <table width="98%" align="center">
		    <tr>
		    	<th class="td_01" height="25px">角色ID</th>
		    	<th class="td_01">角色名</th>
		    	<th class="td_01">更新者ID</th>
		    	<th class="td_01">更新时间</th>
		    	<th class="td_01">操作</th>
		    </tr>
		    <logic:iterate id="operator" name="OperatorList">
			    <tr>
			    	<td class="td_03"><bean:write name="operator" property="roleid" /></td>
			    	<td class="td_03"><bean:write name="operator" property="rolename" /></td> 
			    	<td class="td_03"><bean:write name="operator" property="createdid" /></td>
			    	<td class="td_03"><bean:write name="operator" property="createtime" format="yyyy-MM-dd hh:mm:ss"/></td>
			    	<td class="td_03">
			    		<a href="${ctx}/operator.do?method=queryRoleById&roleId=<bean:write name="operator" property="roleid" />">修改</a>&nbsp;&nbsp;
			    		<a href="${ctx}/operator.do?method=deleteRole&roleId=<bean:write name="operator" property="roleid" />" onclick="return firm();">删除</a>
			    	</td>
			    </tr>
		    </logic:iterate> 
		    <tr>
		    	<td colspan="5" align="center"><a href="jsp/worker/roleAdd.jsp">添加</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:'宋体'; font-size:12px; color:#FF0000">${deleteMsg}</span></td> 
		    </tr>
		</table>
	</body>
</html>